/**
 * create by young (young2f@outlook.com) on 2020/12/17
 */
'use strict';
const moment = require('moment');
moment.locale('zh-cn');
// import 'moment/locale/zh-cn';
module.exports = {
  tenantCode: { type: 'string' },
  tenantName: { type: 'string' },
  createUser: { type: 'string' },
  createUsername: { type: 'string' },
  /**
   * 是否删除
   */
  isDeleted: { type: 'boolean', default: false },
  // createdTs: {
  //   type: Date,
  //   default: getNow()
  // },
  // updatedTs: {
  //   type: Date,
  //   default: getNow()
  // },

};

function getNow() {
  // import moment from 'moment';
  moment.locale('zh-cn');
  return moment.now();
}
